﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DepartmentMemberUserControl.ascx.cs"
    Inherits="JM.JCY.SharePointComponent.Department.DepartmentMember.DepartmentMemberUserControl" %>
<script type="text/javascript">


    $(document).ready(function () {
        $("#tdToggleDeptNameMember1").click(function () {
            var div = document.getElementById("divToggleDeptNameMember");
            if (div.style.display == "") {
                div.style.display = "none";
                $("#imgToggleDeptNameMember").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_expand.png");

            }
            else {
                div.style.display = "";
                $("#imgToggleDeptNameMember").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_collapse.png");

            }
        });
    });

    $(document).ready(function () {
        $("#tdToggleDeptNameMember2").click(function () {
            var div = document.getElementById("divToggleDeptNameMember");
            if (div.style.display == "") {
                div.style.display = "none";
                $("#imgToggleDeptNameMember").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_expand.png");

            }
            else {
                div.style.display = "";
                $("#imgToggleDeptNameMember").attr("src", "/_layouts/JM.JCY.Resource/images/toggle_collapse.png");

            }
        });
    });

</script>
<div>
    <table class="main" width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <table class="webpart" width="450px" cellpadding="0" cellspacing="0">
                    <tr>
                        <th align="left" id="tdToggleDeptNameMember1" class="title" style="cursor: pointer">
                            <asp:Label ID="lblDeptNameMember" runat="server" Visible="false"></asp:Label>
                            部门干警
                        </th>
                        <th id="tdToggleDeptNameMember2" class="link" align="right" width="20%" style="cursor: pointer">
                            <img class="toggle" id="imgToggleDeptNameMember" src="/_layouts/JM.JCY.Resource/images/toggle_collapse.png" />
                        </th>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div id="divToggleDeptNameMember">
                                <table width="100%">
                                    <tr>
                                        <td>
   

                                                     <asp:DataList ID="dlUserMember" runat="server" RepeatColumns="3"
                                                OnItemDataBound="dlUserMember_ItemDataBound" HorizontalAlign="Left"  
                                                         CellPadding="10" RepeatDirection="Horizontal">
                                                <ItemTemplate>
                                                    <table>
                                                        <tr>
                                                            <td valign="top" align="center">
                                                                <asp:Literal ID="ltImgPic" runat="server"></asp:Literal>
                                                            </td>

                                                         </tr>
                                                              <tr>
                                                            <td valign="top" align="center">
                                                               <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                                                <br />
                                                                <asp:Label ID="lblUserTitle" runat="server" Text='<%# Eval("JobTitle") %>' ForeColor="DarkBlue"></asp:Label>
                                                            </td>

                                                      </tr>
                                                    </table>

                                                  

                                                </ItemTemplate>
                                            </asp:DataList>

                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
